import datetime


def count_day():
    day1 = datetime.date.today()
    year = int(input('年是:'))
    month = int(input('月是:'))
    day = int(input('日是:'))
    day2 = datetime.date(year, month, day)
    n = (day1 - day2).days
    # age=(day1-day2).year
    print(dir(day1 - day2))
    print('距今天', n, '天')


# name = str(input(“请输入您的姓名：”))
def count_year(birth_day=2011):
    birth_day = int(input('请输入您的出生年份：'))
    today = datetime.date.today()
    print(str(today))
    age = today.year - birth_day
    print(f'您好!。您为{age}岁')


count_year()
